package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Setter
@Getter
@ToString
public class Insurance {
    private Long id;
    //保单编号
    private String sn;
    //客户
    private Customer customer;
    //汽车
    private CarInformation car;
    //申请日期
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date applicationDate;
    //审核单号
    private String auditNumber;
    //核保日期

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;
    //保险时长
    private Integer burningTime;
    //保险截止日
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;
    //业务员
    private Employee sale;
    //审核员
    private Employee audit;
    //承保机构
    private Organization organization;
    //保险产品
    private Product product;
    //投保总金额
    private BigDecimal totalAmount;
    //保单状态
    private Integer state;
    //支付状态
    private Boolean payState;
    //付款方式
    private Integer payWay;
    //保单申请建议
    private String applicationAdvice;
    //保单审核意见
    private String remark;
}